/**
 * 
 */
package cn.gov.msa.service;

import java.util.List;

import cn.gov.msa.model.Amanuensis;
import cn.gov.msa.model.DeclareItemMaterial;
import cn.gov.msa.model.RecordCompany;
import cn.gov.msa.model.Apply;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;


/**   
* @Title: ApplyService.java 
* @Package cn.gov.msa.service 
* @Description: TODO(用一句话描述该文件做什么) 
* @author 何宇江   
* @date 2018年3月16日 下午2:26:06 
*/
public interface ApplyService {
	
	public List<Apply> selectData(int pageNum, int pageSize, Apply apply);
	
	public List<Apply> selectDataHadDone(int pageNum, int pageSize, Apply apply);
	
	public String saveData(JSONObject jsonApply, JSONObject jsonBusiness, JSONArray jaMaterial, JSONArray jaShip, JSONArray jaCoordinate,JSONArray jaVerify , JSONArray jaDevice, boolean issubmit) throws Exception;

	public List<DeclareItemMaterial> getMaterial(String itemno) throws Exception;
	
	public String getInfo(String applyno) throws Exception;
	
	public String getCorrectionInfo(String applyno) throws Exception;

	public String getAcceptInfo(String applyid) throws Exception;
	
	public boolean saveAmanuensis(String applyno, String rulenum) throws Exception;
	
	public void saveAmanuensisByTask() throws Exception;

	public int deelteApply(String applyid) throws Exception;


	public Amanuensis getAmanuensisById(String amanuensisid) throws Exception;
	public List<Amanuensis> getAmanuensis(Amanuensis amanuensis) throws Exception;

	void saveCompanyRecord(JSONObject jsonApply,JSONObject jsonBusiness) throws Exception;
	
	public int saveComment(Apply apply) throws Exception;

	void saveShipRecord(JSONObject jsonApply, JSONObject jsonBusiness) throws Exception;

	void savePersonRecord(JSONObject jsonApply, JSONObject jsonBusiness) throws Exception;
	
	public List<RecordCompany> selectCompany(RecordCompany recordCompany) throws Exception;
}
